Percent-encode text for use in URLs, or decode an encoded string back to readable text, instantly in your browser.
Convert text to percent-encoding or decode it back
Enter text or a URL to convert it into percent-encoding (forms like %EA%B0%80), or turn an already encoded string back into readable characters. Choose encode or decode from the tabs at the top; the result updates as you type, and the copy button grabs it instantly. Use it when an address bar is full of % signs, when a link or search URL value needs non-ASCII letters, spaces or symbols, or when you need to read an encoded URL from a log or analytics tool.
Encoding uses the browser's built-in encodeURIComponent as is. Every character except Latin letters, digits and - _ . ! ~ * ' ( ) is converted to UTF-8 bytes, and each byte is written as % plus two hex digits. So a 3-byte Korean syllable (U+AC00) becomes %EA%B0%80, a space %20, ? becomes %3F, & %26 and / %2F. For example, 'café au lait' becomes caf%C3%A9%20au%20lait. Decoding first turns + into a space and then applies decodeURIComponent. If a % is not followed by two valid hex digits or the bytes do not form valid UTF-8, a red error message appears in the result box and the copy button does nothing. All conversion happens in your browser and nothing is sent to a server.
No. Non-ASCII characters have been percent-encoded by the rules. Paste it into the decode tab to see the original, and browsers open the encoded address normally.
encodeURI keeps structural characters like : / ? # & for use on a whole address, while encodeURIComponent converts them too for use on a single value. This tool uses the latter, which suits a search term or one parameter value.
Either a % is followed by something other than two hex digits, or a multibyte character was cut partway. Check that the end of the string is intact and that no unencoded % is mixed in.
No. Conversion happens only in your browser and the page has no code that sends it anywhere. Your input disappears when you close the page.
Posts · 0
No posts yet.